import React from 'react'
import { history} from 'umi'
import { NavBar} from 'antd-mobile'
import './index.less'

export default function HeaderNav(props) {
  const title = props.title

  const back = () =>{
    history.go(-1)
  }

  return (
    <div className='header-nav'>
      <NavBar back={title} onBack={back}></NavBar>
    </div>
  )
}
